var mongoose = require('mongoose')

var schema = require('../config/schema')
var bookSchema = mongoose.Schema(schema.book)

// vacationSchema.methods.getDisplayPrice = function(){

//     return '$' + (this.priceInCents/100).toFixed(2);
// }

var bookModel = mongoose.model('book', bookSchema)

module.exports = bookModel;
